package com.bm.api.controller;

import com.bm.api.service.SendMsgService;
import com.bm.common.bo.ChatBo;
import com.bm.common.util.Rutils;
import com.bm.common.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/07/21/11:23
 */
@RestController
@RequestMapping("/api/send")
@Api(tags = "谁是卧底聊天房实现发消息-赵金帅 ")
public class SendMsgController {
    @Resource
    private SendMsgService service;
    @ApiOperation(value = "单发消息，发送卧底词")
    @PostMapping("sendone.do")
    public R sendOne(@RequestBody ChatBo bo){
        return service.sendOne(bo);
    }
    @ApiOperation(value = "群发消息，公共聊天")
    @PostMapping("moremsg.do")
    public R sendmore(@RequestParam String msg){
        return service.sendmore(msg);
    }
}
